/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ciberiasoluciones.cibervoto.utility;

import java.util.Calendar;

/**
 *
 * @author ciberia
 */
public class contoltime {
    
    
 private Thread t = new Thread();
 private int oldMinute;
 private int newMinute;
    
   public contoltime(){
        t.start();
   }
    
    
    
public void run() {     
        Calendar oldTime = Calendar.getInstance();
        oldMinute =  oldTime .get(Calendar.MINUTE);
        while(true) {
                Calendar rightNow= Calendar.getInstance();          
            newMinute = rightNow.get(Calendar.MINUTE);
            if(newMinute != oldMinute) {

                oldMinute = newMinute;

                
               /* mTv.setText("Refreshed! Last updated " + 
                           rightNow.get(Calendar.HOUR) + ":" + 
                           rightNow.get(Calendar.MINUTE) + ".");*/
            }
        }
    }

    public String hour()
    {
        return null;
    }


}
